package com.yangtao.framework.web.query;


import java.io.Serializable;

/**
 * 表单上的查询条件封装类
 * 封装表单的查询条件
 *
 * @auther: 杨涛
 * Date: 11-4-22
 * Time: 下午2:16
 * @version: 1.0
 */
public class QueryCondition implements Serializable {
    /**
     * 查询主实体名称
     */
    private String enityName;
    /**
     * 实体对应的属性名称
     */
    private String propertyName;
    /**
     * 实体对应的属性类型
     */
    private String propertyType;
    /**
     * 查询关系符号
     */
    private Operator operator;
    /**
     * like查询时候的匹配模式
     */
    private MatchMode matchMode;
    /**
     * 条件的值
     */
    private String value;
    /**
     * 输入的第二个值
     */
    private String value2;
    /**
     * 多个值
     */
    private String[] multipleValue;

    public MatchMode getMatchMode() {
        return matchMode;
    }

    public void setMatchMode(MatchMode matchMode) {
        this.matchMode = matchMode;
    }

    public String getEnityName() {
        return enityName;
    }

    public void setEnityName(String enityName) {
        this.enityName = enityName;
    }

    public String getPropertyName() {
        return propertyName;
    }

    public void setPropertyName(String propertyName) {
        this.propertyName = propertyName;
    }

    public String getPropertyType() {
        return propertyType;
    }

    public void setPropertyType(String propertyType) {
        this.propertyType = propertyType;
    }

    public Operator getOperator() {
        return operator;
    }

    public void setOperator(Operator operator) {
        this.operator = operator;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getValue2() {
        return value2;
    }

    public void setValue2(String value2) {
        this.value2 = value2;
    }

    public String[] getMultipleValue() {
        return multipleValue;
    }

    public void setMultipleValue(String[] multipleValue) {
        this.multipleValue = multipleValue;
    }
}
